package com.yl.project.lvyou.knowledge.service;

import java.util.List;
import com.yl.project.lvyou.knowledge.domain.QaKnowledge;
import com.yl.framework.config.IService;

/**
 * 咨询问答知识库Service接口
 * 
 * @author yl
 * @date 2025-03-16
 */
public interface IQaKnowledgeService extends IService<QaKnowledge>
{
    /**
     * 查询咨询问答知识库
     * 
     * @param id 咨询问答知识库ID
     * @return 咨询问答知识库
     */
    public QaKnowledge selectQaKnowledgeById(Long id);

    /**
     * 查询咨询问答知识库列表
     * 
     * @param qaKnowledge 咨询问答知识库
     * @return 咨询问答知识库集合
     */
    public List<QaKnowledge> selectQaKnowledgeList(QaKnowledge qaKnowledge);

    /**
     * 新增咨询问答知识库
     * 
     * @param qaKnowledge 咨询问答知识库
     * @return 结果
     */
    public int insertQaKnowledge(QaKnowledge qaKnowledge);

    /**
     * 修改咨询问答知识库
     * 
     * @param qaKnowledge 咨询问答知识库
     * @return 结果
     */
    public int updateQaKnowledge(QaKnowledge qaKnowledge);

    /**
     * 批量删除咨询问答知识库
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteQaKnowledgeByIds(String ids);

    /**
     * 删除咨询问答知识库信息
     * 
     * @param id 咨询问答知识库ID
     * @return 结果
     */
    public int deleteQaKnowledgeById(Long id);

    public QaKnowledge selectQaKnowledgeAnswert(QaKnowledge qaKnowledge);

    public List<QaKnowledge> selectQaKnowledgeListQa(QaKnowledge qaKnowledge);
}
